<template>
  <div>
    <div class="box"></div>
    <div
      class="specialDetails"
      v-for="(item, index) in specialDetails"
      :key="index"
    >
      <div class="specialDetails_img">
        <img :src="item.pic" alt="" />
      </div>
      <div class="special_box_title_box">
        <p class="special_box_title_box_p">{{ item.title }}</p>
        <div class="van-multi-ellipsis--l2">
          {{ item.descript }}
        </div>
        <button class="button">查看详情</button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    specialDetails: {
      type: Array,
      required: true,
    },
  },
};
</script>

<style scoped>
.box {
  width: 100%;
  height: 65px;
}
.specialDetails {
  width: 100%;
  position: relative;
}
.specialDetails_img {
  width: 100%;
}
.specialDetails_img img {
  width: 100%;
}
.special_box_title_box {
  width: 90%;
  height: 60px;
  position: absolute;
  bottom: 75px;
  left: 0;
  text-align: center;
}
.special_box_title_box_p {
  font-size: 12px;
  color: white;
  margin-bottom: 10px;
}
.van-multi-ellipsis--l2 {
  font-size: 10px;
  color: white;
}
.button {
  width: 60px;
  height: 30px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  font-size: 10px;
}
</style>